{% extends "generalTemplate.html" %}
{% block pageName %}BioVenturist - Latests posts{% endblock %}


{% block queryScript %}
<link type="text/css" rel="stylesheet" href="/bvblogapp/static/css/bvblogapp.css"></link>
{% endblock %}


{% block container %}
<div id="col2">
    <table class="width100">
        <tr>
            <td class="blog_index">	
    <table class="width100">
    	<tr>
    		<td style="padding: 0; margin: 0">
				<h1>Latest analyses</h1>
			</td>
			<td style="padding: 0; margin: 0" align="right">
				<a href="/analysis/feeds/latest/"><img src="/static/img/rss.png" /></a>
			</td>
		</tr>
	</table>
    {% for post in paginator.object_list %}
    <p class="post_date">
        {{ post.created_at|date:"D, d M Y" }}
    </p>
    <h2 class="blog_post_title"><a href="{{ post.get_absolute_url }}">{{ post.title }}</a> by <a href="{% url blog_index post.author_username %}">{{ post.author_username }}</a></h2>
    <div class="post_body">
        {{ post.text|safe }} 
    </div>
    <p class="post_tags">
        <span class="blog_post_tags_title">Tags: </span>{{ post.tags }}
    </p>
    <p class="post_comments">
        <span class="blog_post_comments_title">Comments: </span>
        0 comments
    </p>
	<hr />
    {% endfor %}
	<div id="pagination">
		{% if paginator.has_prev_page %}<a href="{% url latests_posts %}?page={{paginator.prev_page}}">&lt;</a>{% endif %}
		{% for page in paginator.page_range %}
			
			{% ifequal paginator.page page %} 
			<span class="strong">{{ page }}</span>&nbsp;
			{% else %}
			<a href="{% url latests_posts %}?page={{page}}">{{ page }}</a>&nbsp;
			{% endifequal %}
		{% endfor %}
		{% if paginator.has_next_page %}<a href="{% url latests_posts %}?page={{paginator.next_page}}">&gt;</a>{% endif %}		
	</div>
            </td>
            <td class="tags">
				{% include 'bvblogapp/public_tags.html' %}
            </td>
        </tr>
    </table>	
</div>

{% endblock %}